using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class u1000_follow_up_dataMap : EntityTypeConfiguration<u1000_follow_up_data>
    {
        public u1000_follow_up_dataMap()
        {
            // Primary Key
            this.HasKey(t => t.total_cholesterin);

            // Properties
            this.Property(t => t.create_by)
                .HasMaxLength(20);

            this.Property(t => t.update_by)
                .HasMaxLength(20);

            this.Property(t => t.patient_id)
                .HasMaxLength(20);

            this.Property(t => t.is_first_follow_up)
                .HasMaxLength(20);

            this.Property(t => t.follow_up_type)
                .HasMaxLength(20);

            this.Property(t => t.blood_sugar_mou)
                .HasMaxLength(20);

            this.Property(t => t.blood_sugar_2h_mou)
                .HasMaxLength(20);

            this.Property(t => t.blood_tg_3_mou)
                .HasMaxLength(20);

            this.Property(t => t.uric_acid_mou)
                .HasMaxLength(20);

            this.Property(t => t.uric_nitrogen_mou)
                .HasMaxLength(20);

            this.Property(t => t.cardiogram_miocardial_infarction)
                .HasMaxLength(20);

            this.Property(t => t.cardiogram_left_fat)
                .HasMaxLength(20);

            this.Property(t => t.cardiogram_quiver)
                .HasMaxLength(20);

            this.Property(t => t.cardiogram_st_t_change)
                .HasMaxLength(20);

            this.Property(t => t.syndrome_cerebral_apoplexy)
                .HasMaxLength(20);

            this.Property(t => t.syndrome_brain_blood)
                .HasMaxLength(20);

            this.Property(t => t.syndrome_tia)
                .HasMaxLength(20);

            this.Property(t => t.syndrome_myocardial_infaction)
                .HasMaxLength(20);

            this.Property(t => t.syndrome_heart_failure)
                .HasMaxLength(20);

            this.Property(t => t.syndrome_kidney_failure)
                .HasMaxLength(20);

            this.Property(t => t.smoke_status)
                .HasMaxLength(20);

            this.Property(t => t.drink_status)
                .HasMaxLength(20);

            this.Property(t => t.exercise_number_week)
                .HasMaxLength(20);

            this.Property(t => t.exercise_minutes)
                .HasMaxLength(20);

            this.Property(t => t.creatinine_mou)
                .HasMaxLength(20);

            this.Property(t => t.hdl_c_mou)
                .HasMaxLength(20);

            this.Property(t => t.ldl_c_mou)
                .HasMaxLength(20);

            this.Property(t => t.total_cholesterin)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.total_cholesterin_mou)
                .HasMaxLength(20);

            this.Property(t => t.bp_class)
                .HasMaxLength(50);

            this.Property(t => t.uric)
                .HasMaxLength(20);

            this.Property(t => t.uric_exception_diagnose)
                .HasMaxLength(200);

            this.Property(t => t.sr)
                .HasMaxLength(20);

            this.Property(t => t.sr_exception_diagnose)
                .HasMaxLength(200);

            this.Property(t => t.b_ultrasound)
                .HasMaxLength(20);

            this.Property(t => t.b_ultra_exception_diagnose)
                .HasMaxLength(200);

            this.Property(t => t.x_ray)
                .HasMaxLength(50);

            this.Property(t => t.x_ray_exception_diagnose)
                .HasMaxLength(200);

            this.Property(t => t.syndrome_target_organ_damage)
                .HasMaxLength(20);

            this.Property(t => t.syndrome_heart_disease)
                .HasMaxLength(20);

            this.Property(t => t.syndrome_cardiac_arrythmia)
                .HasMaxLength(20);

            this.Property(t => t.syndrome_cerebral_vascular_disease)
                .HasMaxLength(20);

            this.Property(t => t.syndrome_nephropathy)
                .HasMaxLength(20);

            this.Property(t => t.CEREBRAL_APOPLEXY)
                .HasMaxLength(20);

            this.Property(t => t.syndrome_diabetic_nephropathy)
                .HasMaxLength(20);

            this.Property(t => t.syndrome_retina_damage)
                .HasMaxLength(20);

            this.Property(t => t.read_doc)
                .HasMaxLength(20);

            this.Property(t => t.fat_absorb)
                .HasMaxLength(20);

            this.Property(t => t.salt_absorb)
                .HasMaxLength(20);

            this.Property(t => t.ht_drug1_name)
                .HasMaxLength(50);

            this.Property(t => t.ht_drug1_dosage)
                .HasMaxLength(20);

            this.Property(t => t.ht_drug1_usage)
                .HasMaxLength(20);

            this.Property(t => t.ht_drug1_taken_status)
                .HasMaxLength(20);

            this.Property(t => t.ht_drug2_name)
                .HasMaxLength(50);

            this.Property(t => t.ht_drug2_dosage)
                .HasMaxLength(20);

            this.Property(t => t.ht_drug2_usage)
                .HasMaxLength(20);

            this.Property(t => t.ht_drug2_taken_status)
                .HasMaxLength(20);

            this.Property(t => t.ht_drug3_name)
                .HasMaxLength(50);

            this.Property(t => t.ht_drug3_dosage)
                .HasMaxLength(20);

            this.Property(t => t.ht_drug3_usage)
                .HasMaxLength(20);

            this.Property(t => t.ht_drug3_taken_status)
                .HasMaxLength(20);

            this.Property(t => t.bp_level)
                .HasMaxLength(20);

            this.Property(t => t.bp_level_desc)
                .HasMaxLength(200);

            this.Property(t => t.medical_pay)
                .HasMaxLength(5);

            this.Property(t => t.medical_pay_type)
                .HasMaxLength(20);

            this.Property(t => t.cardiogram)
                .HasMaxLength(20);

            this.Property(t => t.syndrome_left_fat)
                .HasMaxLength(20);

            this.Property(t => t.blood_fat_abnormal)
                .HasMaxLength(20);

            this.Property(t => t.hphostory)
                .HasMaxLength(20);

            this.Property(t => t.istakedrug)
                .HasMaxLength(20);

            this.Property(t => t.exercise)
                .HasMaxLength(20);

            this.Property(t => t.syndrome_diabetes)
                .HasMaxLength(20);

            // Table & Column Mappings
            this.ToTable("u1000_follow_up_data");
            this.Property(t => t.create_time).HasColumnName("create_time");
            this.Property(t => t.create_by).HasColumnName("create_by");
            this.Property(t => t.update_time).HasColumnName("update_time");
            this.Property(t => t.update_by).HasColumnName("update_by");
            this.Property(t => t.follow_up_id).HasColumnName("follow_up_id");
            this.Property(t => t.patient_id).HasColumnName("patient_id");
            this.Property(t => t.follow_up_date).HasColumnName("follow_up_date");
            this.Property(t => t.next_follow_up_date).HasColumnName("next_follow_up_date");
            this.Property(t => t.is_first_follow_up).HasColumnName("is_first_follow_up");
            this.Property(t => t.follow_up_type).HasColumnName("follow_up_type");
            this.Property(t => t.height).HasColumnName("height");
            this.Property(t => t.weight).HasColumnName("weight");
            this.Property(t => t.heart_ratio).HasColumnName("heart_ratio");
            this.Property(t => t.blood_sugar).HasColumnName("blood_sugar");
            this.Property(t => t.blood_sugar_mou).HasColumnName("blood_sugar_mou");
            this.Property(t => t.blood_sugar_2h).HasColumnName("blood_sugar_2h");
            this.Property(t => t.blood_sugar_2h_mou).HasColumnName("blood_sugar_2h_mou");
            this.Property(t => t.blood_tg_3).HasColumnName("blood_tg_3");
            this.Property(t => t.blood_tg_3_mou).HasColumnName("blood_tg_3_mou");
            this.Property(t => t.blood_rbc).HasColumnName("blood_rbc");
            this.Property(t => t.blood_hb).HasColumnName("blood_hb");
            this.Property(t => t.blood_wbc).HasColumnName("blood_wbc");
            this.Property(t => t.blood_plt).HasColumnName("blood_plt");
            this.Property(t => t.uric_acid).HasColumnName("uric_acid");
            this.Property(t => t.uric_acid_mou).HasColumnName("uric_acid_mou");
            this.Property(t => t.uric_nitrogen).HasColumnName("uric_nitrogen");
            this.Property(t => t.uric_nitrogen_mou).HasColumnName("uric_nitrogen_mou");
            this.Property(t => t.cardiogram_miocardial_infarction).HasColumnName("cardiogram_miocardial_infarction");
            this.Property(t => t.cardiogram_left_fat).HasColumnName("cardiogram_left_fat");
            this.Property(t => t.cardiogram_quiver).HasColumnName("cardiogram_quiver");
            this.Property(t => t.cardiogram_st_t_change).HasColumnName("cardiogram_st_t_change");
            this.Property(t => t.syndrome_cerebral_apoplexy).HasColumnName("syndrome_cerebral_apoplexy");
            this.Property(t => t.syndrome_brain_blood).HasColumnName("syndrome_brain_blood");
            this.Property(t => t.syndrome_tia).HasColumnName("syndrome_tia");
            this.Property(t => t.syndrome_myocardial_infaction).HasColumnName("syndrome_myocardial_infaction");
            this.Property(t => t.syndrome_heart_failure).HasColumnName("syndrome_heart_failure");
            this.Property(t => t.syndrome_kidney_failure).HasColumnName("syndrome_kidney_failure");
            this.Property(t => t.smoke_status).HasColumnName("smoke_status");
            this.Property(t => t.drink_status).HasColumnName("drink_status");
            this.Property(t => t.exercise_number_week).HasColumnName("exercise_number_week");
            this.Property(t => t.exercise_minutes).HasColumnName("exercise_minutes");
            this.Property(t => t.times_inpatient).HasColumnName("times_inpatient");
            this.Property(t => t.times_emergency).HasColumnName("times_emergency");
            this.Property(t => t.bmi).HasColumnName("bmi");
            this.Property(t => t.sbp_final).HasColumnName("sbp_final");
            this.Property(t => t.dbp_final).HasColumnName("dbp_final");
            this.Property(t => t.sbp_1).HasColumnName("sbp_1");
            this.Property(t => t.dbp_1).HasColumnName("dbp_1");
            this.Property(t => t.sbp_2).HasColumnName("sbp_2");
            this.Property(t => t.dbp_2).HasColumnName("dbp_2");
            this.Property(t => t.creatinine).HasColumnName("creatinine");
            this.Property(t => t.creatinine_mou).HasColumnName("creatinine_mou");
            this.Property(t => t.hdl_c).HasColumnName("hdl_c");
            this.Property(t => t.hdl_c_mou).HasColumnName("hdl_c_mou");
            this.Property(t => t.ldl_c).HasColumnName("ldl_c");
            this.Property(t => t.ldl_c_mou).HasColumnName("ldl_c_mou");
            this.Property(t => t.total_cholesterin).HasColumnName("total_cholesterin");
            this.Property(t => t.total_cholesterin_mou).HasColumnName("total_cholesterin_mou");
            this.Property(t => t.bp_class).HasColumnName("bp_class");
            this.Property(t => t.uric).HasColumnName("uric");
            this.Property(t => t.uric_exception_diagnose).HasColumnName("uric_exception_diagnose");
            this.Property(t => t.sr).HasColumnName("sr");
            this.Property(t => t.sr_exception_diagnose).HasColumnName("sr_exception_diagnose");
            this.Property(t => t.b_ultrasound).HasColumnName("b_ultrasound");
            this.Property(t => t.b_ultra_exception_diagnose).HasColumnName("b_ultra_exception_diagnose");
            this.Property(t => t.x_ray).HasColumnName("x_ray");
            this.Property(t => t.x_ray_exception_diagnose).HasColumnName("x_ray_exception_diagnose");
            this.Property(t => t.syndrome_target_organ_damage).HasColumnName("syndrome_target_organ_damage");
            this.Property(t => t.syndrome_heart_disease).HasColumnName("syndrome_heart_disease");
            this.Property(t => t.syndrome_cardiac_arrythmia).HasColumnName("syndrome_cardiac_arrythmia");
            this.Property(t => t.syndrome_cerebral_vascular_disease).HasColumnName("syndrome_cerebral_vascular_disease");
            this.Property(t => t.syndrome_nephropathy).HasColumnName("syndrome_nephropathy");
            this.Property(t => t.CEREBRAL_APOPLEXY).HasColumnName("CEREBRAL_APOPLEXY");
            this.Property(t => t.syndrome_diabetic_nephropathy).HasColumnName("syndrome_diabetic_nephropathy");
            this.Property(t => t.syndrome_retina_damage).HasColumnName("syndrome_retina_damage");
            this.Property(t => t.times_in_class).HasColumnName("times_in_class");
            this.Property(t => t.read_doc).HasColumnName("read_doc");
            this.Property(t => t.fat_absorb).HasColumnName("fat_absorb");
            this.Property(t => t.salt_absorb).HasColumnName("salt_absorb");
            this.Property(t => t.ht_drug1_name).HasColumnName("ht_drug1_name");
            this.Property(t => t.ht_drug1_dosage).HasColumnName("ht_drug1_dosage");
            this.Property(t => t.ht_drug1_usage).HasColumnName("ht_drug1_usage");
            this.Property(t => t.ht_drug1_taken_status).HasColumnName("ht_drug1_taken_status");
            this.Property(t => t.ht_drug2_name).HasColumnName("ht_drug2_name");
            this.Property(t => t.ht_drug2_dosage).HasColumnName("ht_drug2_dosage");
            this.Property(t => t.ht_drug2_usage).HasColumnName("ht_drug2_usage");
            this.Property(t => t.ht_drug2_taken_status).HasColumnName("ht_drug2_taken_status");
            this.Property(t => t.ht_drug3_name).HasColumnName("ht_drug3_name");
            this.Property(t => t.ht_drug3_dosage).HasColumnName("ht_drug3_dosage");
            this.Property(t => t.ht_drug3_usage).HasColumnName("ht_drug3_usage");
            this.Property(t => t.ht_drug3_taken_status).HasColumnName("ht_drug3_taken_status");
            this.Property(t => t.bp_level).HasColumnName("bp_level");
            this.Property(t => t.bp_level_desc).HasColumnName("bp_level_desc");
            this.Property(t => t.data_extract_dt).HasColumnName("data_extract_dt");
            this.Property(t => t.medical_pay).HasColumnName("medical_pay");
            this.Property(t => t.medical_pay_type).HasColumnName("medical_pay_type");
            this.Property(t => t.cardiogram).HasColumnName("cardiogram");
            this.Property(t => t.syndrome_left_fat).HasColumnName("syndrome_left_fat");
            this.Property(t => t.blood_fat_abnormal).HasColumnName("blood_fat_abnormal");
            this.Property(t => t.hphostory).HasColumnName("hphostory");
            this.Property(t => t.istakedrug).HasColumnName("istakedrug");
            this.Property(t => t.exercise).HasColumnName("exercise");
            this.Property(t => t.syndrome_diabetes).HasColumnName("syndrome_diabetes");
            this.Property(t => t.follow_up_sequence).HasColumnName("follow_up_sequence");
            this.Property(t => t.follow_up_flag).HasColumnName("follow_up_flag");
            this.Property(t => t.follow_up_month).HasColumnName("follow_up_month");
        }
    }
}
